<include file='Public:header'/>
<div id="content">
	<include file='Public:left'/>
    <div id="listdom">
		<div class="childdom" >
            <div class="childhead">
                <span class="headtitle"><a href="__APP__/Output/View/viewlist?caid={$infos122.category_id}" target="_self" id="location">{$infos122.category_name}</a>&nbsp;&nbsp;&gt;&gt;&nbsp;&nbsp;列表</span>
            </div>
            <div class="childarea">
                <ul id="lists">
                    <volist name='infos123' id='vo123'>
                        <li><a href="__APP__/Output/View/news?newsid={$vo123.content_id}" class="pubtitle">{$vo123.content_title}</a><span class="pubtime">{$vo123.content_time}</span></li>
                    </volist>
                </ul>				
			</div>
			<div id='switchpage'>
                            <php>
                                if($page==1){
                                    echo "<span class=unclickable>&lt;前页</span>";
                                }else{
                                   echo '<span class=clickable Onclick=><a href="__APP__/Output/View/viewlist?caid='.$infos122['category_id'].'&page='.($page-1).'">&lt;前页</a></span>';
                                }
                                $i=$page-5;
                                if($i<0){
                                    $i=0;
                                }
                                if(($page+5)>$totalpages){
                                    $highPage = $totalpages;
                                }else{
                                    $highPage = $page+5;
                                }
                                while($i<$highPage){
                                    $i++;
                                    if($i==$page){
                                        echo "<span class='pagenumber' id='numberon'  Onclick=''>$i</span>";
                                    }else{
                                        echo "<span class='pagenumber'Onclick=''><a href=__APP__/Output/View/viewlist?caid=".$infos122['category_id']."&page=$i>$i</a></span>";
                                    }
                                }
                                
                                if(($page+1)>$totalpages){
                                    echo '<span class=unclickable Onclick="">后页&gt;</span>';
                                }else{
                                    $nextPage = $page+1;
                                    echo "<span class=clickable Onclick=><a href=__APP__/Output/View/viewlist?caid=".$infos122['category_id']."&page=$nextPage>后页&gt;</a></span>";
                                }
                            </php>
                                
			</div>
        </div>
    </div>
	<div class="margindom"></div>
</div>
<include file="Public:footer" />
</div> 
</body>
</html>
